<template>
  <view class="product-intro">
<!--    &lt;!&ndash; 贵宾 &ndash;&gt;-->
<!--    <view class="item-tip text-ellipsis">-->
<!--      <text class="tip-item" v-if="item.client_name == item.client_tel">-->
<!--        <image src="@/static/img/order-tip-person.png" class="order-tip-img" mode="widthFix"></image>-->
<!--        贵宾-->
<!--      </text>-->
<!--      <text class="tip-item" v-else>-->
<!--        <image src="@/static/img/order-tip-person.png" class="order-tip-img" mode="widthFix"></image>-->
<!--        {{ item.client_name }}-->
<!--      </text>-->
<!--      <text class="tip-item" v-if="item.client_tel">{{ item.client_tel.replace(/(\d{3})\d*(\d{4})/, '$1****$2') }}</text>-->
<!--    </view>-->
<!--    &lt;!&ndash; 我的要求 &ndash;&gt;-->
<!--    <view class="item-tip" v-if="item.requirement">-->
<!--      <text class="tip-item">-->
<!--        <image src="@/static/img/order-tip-order.png" class="order-tip-img" mode="widthFix"></image>-->
<!--        {{ item.requirement }}-->
<!--      </text>-->
<!--    </view>-->
    <!-- 服务保障 -->
    <view class="item-tip text-ellipsis" v-if="isProtect" >
      <view class="item-tip" v-if="userInfo.is_lawyer=='1'&&item.product == '打官司'&& item.price_type=='自费'">
        <text
            class="tip-item green"
            @click.stop="$refs.popupRule.open();"
        >
          {{ "15分钟无理由更换律师·"+item.money_type_text }}
        </text>
        <view class="tip-green-arrow"><image src="@/static/img/green-arrow.png" mode="aspectFit"></image></view>
      </view>
      <view class="item-tip" v-if="item.product != '打官司'">
        <text
            class="tip-item green"
            @click.stop="
					pro_tags_item = item.pro_tags_item;
					$refs.popupRule.open();
				"
        >
          {{ item.pro_tags }}
        </text>
        <view class="tip-green-arrow"><image src="@/static/img/green-arrow.png" mode="aspectFit"></image></view>
      </view>

    </view>
    <!-- 价格 -->
    <view class="item-prize" v-if="userInfo.is_lawyer=='1'&&item.product == '打官司'">
      <!-- <text class="prize-num" v-if="item.price_type == '投资人支付(不用还)'">￥2500.00</text> -->
      <view class="item-right" style="min-height:60rpx;padding-right: 20rpx;" v-if="item.price_type=='自费'">
        <view class="service-list inline-list" v-if="item.offer == '45' || item.offer == '千里马'" style="color:#f20000">
          <!-- <text class="prize-num">￥{{ item.money }}</text> -->
          <text class="prize-num">￥{{ item.total }}</text>
        </view>
        <view class="service-list inline-list" v-if="item.offer == '46' || item.offer == '活马'" style="color:#f20000;margin-bottom: 20rpx">
          前期费用：{{item.total}}(下单时付)
          <view v-if="item.self_ident == '32'">
            后期费用：按律师帮您回收款物金额的{{ item.later_money }}计算
          </view>
          <view v-else>
            后期费用：按律师帮您减少支出金额的{{ item.later_money }}计算
          </view>
        </view>
        <view class="service-list inline-list" v-if="item.offer == '47' || item.offer == '还魂马'" style="color:#f20000;">
          <view v-if="item.self_ident == '32'">
            按律师帮您回收款物金额的{{ item.later_money }}计算
          </view>
          <view v-else>
            按律师帮您减少支出金额的{{ item.later_money }}计算
          </view>
        </view>
      </view>
      <view class="item-right" style="min-height:60rpx;padding-right: 20rpx;" v-else>
        <text class="prize-num" style="color:#f20000;margin-bottom: 20rpx" v-if="item.price_type == '投资人支付(不用还)'">￥{{item.money}}</text>
      </view>
    </view>
        <!-- 价格 -->
    <view class="item-prize" v-if="userInfo.is_fawu=='1'&&item.product == '打官司'">
      <!-- <text class="prize-num" v-if="item.price_type == '投资人支付(不用还)'">￥2500.00</text> -->
      <view class="item-right" style="min-height:60rpx;padding-right: 20rpx;">
        <view class="service-list inline-list" style="color:#f20000">
          <text class="prize-num">￥100</text>
        </view>
      </view>
    </view>
    <view class="item-prize" v-if="item.product != '打官司'">
      <!-- <text class="prize-num" v-if="item.price_type == '投资人支付(不用还)'">￥2500.00</text> -->
      <text class="prize-num">￥{{ item.money }}</text>
    </view>
    <!-- 服务规则弹出层 -->
    <uni-popup ref="popupRule" type="center">
      <order-popup-common morenWidth="560"   title="服务规则" @closePop="closePop('popupRule')">
        <scroll-view class="popup-con" scroll-y="true" slot="popup-con">
          <view style="padding:0 30rpx;"><image :src="item.pro_tags_item" mode="widthFix" style="width: 100%"></image></view>
        </scroll-view>
        <view class="ok-box" slot="popup-btn"><button type="default" class="ok-btn" @click="closePop('popupRule')">朕知道了</button></view>
      </order-popup-common>
    </uni-popup>
  </view>
</template>

<script>
export default {
  props: ['item', 'isProtect',"userInfo"],
  data() {
    return {
      pro_tags_item: '' //服务规则
    };
  },
  created() {
    //console.log("====item234567890",this.item)
  },
  methods: {}
};
</script>

<style lang="scss"></style>
